<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>添加客户</title>
		<link rel="stylesheet" href="__PUBLIC__/frame/layui/css/layui.css">
			<!--<link rel="stylesheet" href="http://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">-->
		<link rel="stylesheet" href="__PUBLIC__/frame/static/css/style.css">
	</head>
	<body>
		<a href="<?php echo U('lst');?>" class="layui-btn" style="margin-top: 10px; "><i class="layui-icon">&#xe603;</i>客户列表</a>
		<a class="layui-btn btn-add btn-default" id="btn-refresh" style="margin-top: 10px;"><i class="layui-icon">&#x1002;</i></a>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
          <legend style="font-size: 14px;">添加客户</legend>
        </fieldset>
		
		<form class="layui-form" action="__SELF__" method="post">
			<div class="layui-form-item">
			    <label class="layui-form-label">客户姓名</label>
			    <div class="layui-input-inline">
			      <input type="text" name="cusname" lay-verify="required" placeholder="请输入客户姓名" autocomplete="off" class="layui-input" value="刘斌">
			    </div>
			</div>
			<div class="layui-form-item" >
			    <label class="layui-form-label">联系电话</label>
			    <div class="layui-input-inline">
			      <input type="text" name="tel" lay-verify="required" placeholder="请输入联系电话" autocomplete="off" class="layui-input" value="13508003932">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">地址</label>
			    <div class="layui-input-block">
			      <input type="text" name="address" lay-verify="title" autocomplete="off" placeholder="请输入地址" class="layui-input">
			</div>
			<div class="layui-form-item" style="margin-top: 20px;">
			    <label class="layui-form-label">身份证号码</label>
			    <div class="layui-input-block">
			      <input type="text" name="ID_number" lay-verify="identity" placeholder="" autocomplete="off" class="layui-input" value="510603199207282222">
			    </div>
			</div>
			<div class="layui-form-item" pane="">
			    <label class="layui-form-label">单选框</label>
			    <div class="layui-input-block">
			      <input type="radio" name="sex" value="男" title="男" checked="">
			      <input type="radio" name="sex" value="女" title="女">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">年龄</label>
			    <div class="layui-input-inline">
			      <input type="text" name="age" placeholder="请输入客户年龄" autocomplete="off" class="layui-input" value="35">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">收单日期</label>
			    <div class="layui-input-inline">
			    	<input type="text" name="redate" id="date1" autocomplete="off" class="layui-input aaa">
			    </div>
			</div>
			<div class="layui-form-item">
			    
			    <!-- <div class="layui-inline">
			      <label class="layui-form-label">用户编号</label>
			      <div class="layui-input-inline">
			        <input type="text" name="number" autocomplete="off" class="layui-input">
			      </div>
			    </div> -->
			    <div class="layui-inline">
			      <label class="layui-form-label">单号</label>
			      <div class="layui-input-inline">
			        <input type="text" name="odd_numbers" autocomplete="off" class="layui-input" value="11111">
			      </div>
			    </div>
		    </div>
		    <div class="layui-form-item">
			    <label class="layui-form-label">资料来源</label>
			    <div class="layui-input-block">
			      <input type="text" name="resource" lay-verify="required" autocomplete="off" placeholder="请输入资料来源" class="layui-input" value="自建">
			    </div>
			</div>
		    <div class="layui-form-item">			    
			    <div class="layui-inline">
			      <label class="layui-form-label">资金量</label>
			      <div class="layui-input-inline">
			        <input type="text" name="financing" lay-verify="required" autocomplete="off" class="layui-input" value="10000">
			      </div>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">产品名称</label>
			      <div class="layui-input-inline">
			        <input type="text" name="product_name" lay-verify="required" autocomplete="off" class="layui-input" value="1号">
			      </div>
			    </div>
		    </div>
		    
		     <div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">服务时间</label>
			      <div class="layui-input-inline" style="width: 100px;">
			        <input type="text" name="server_time_start" lay-verify="required" id="date2"  autocomplete="off" class="layui-input">
			      </div>
			      <div class="layui-form-mid">-</div>
			      <div class="layui-input-inline" style="width: 100px;">
			        <input type="text" name="server_time_end" lay-verify="required" id="date3"  autocomplete="off" class="layui-input">
			      </div>
			    </div>
			  </div>
		
		       <div class="layui-form-item">			    
				    <div class="layui-inline">
				      <label class="layui-form-label">部门</label>
				      <div class="layui-input-inline">
				        <input type="text" name="part" lay-verify="required" autocomplete="off" class="layui-input" value="销售部">
				      </div>
				    </div>
				    <div class="layui-inline">
				      <label class="layui-form-label">组别</label>
				      <div class="layui-input-inline">
				        <input type="text" name="group" lay-verify="required" autocomplete="off" class="layui-input" value="二组">
				      </div>
				    </div>
				    <div class="layui-inline">
				      <label class="layui-form-label">业务员</label>
				      <div class="layui-input-inline">
				        <input type="text" name="sale_worker" lay-verify="required" autocomplete="off" class="layui-input">
				      </div>
				    </div>
		        </div>
		        <div class="layui-form-item layui-form-text">
				    <label class="layui-form-label">业务员备注</label>
				    <div class="layui-input-block">
				      <textarea placeholder="请输入内容" name="order_remark" class="layui-textarea"></textarea>
				    </div>
				</div>
				<div class="layui-form-item">			    
				    <div class="layui-inline">
				      <label class="layui-form-label">销售主任</label>
				      <div class="layui-input-inline">
				        <input type="text" name="sale_head" lay-verify="required" autocomplete="off" class="layui-input" value="老庄">
				      </div>
				    </div>
				    <div class="layui-inline">
				      <label class="layui-form-label">销售经理</label>
				      <div class="layui-input-inline">
				        <input type="text" name="sale_manager" lay-verify="required" autocomplete="off" class="layui-input" value="老张">
				      </div>
				    </div>
				   
		        </div>
		        <div class="layui-form-item">			    				 				  
				    <div class="layui-inline">
				      <label class="layui-form-label">商务经理</label>
				      <div class="layui-input-inline">
				        <input type="text" name="business_manager" lay-verify="required" autocomplete="off" class="layui-input" value="梁经理">
				      </div>
				    </div>
				    <div class="layui-inline">
				      <label class="layui-form-label">商务专员</label>
				      <div class="layui-input-inline">
				        <input type="text" name="businesser" lay-verify="required" autocomplete="off" class="layui-input" value="小弟">
				      </div>
				    </div>
		        </div>
		        <div class="layui-form-item">			    				 				  
				    <div class="layui-inline">
					    <label class="layui-form-label">客户分类</label>
					    <div class="layui-input-block">
					      <select name="customer_type" lay-verify="required" lay-filter="aihao">
					        <option value="0">请选择</option>
					        <option value="A类危险型">A类危险型</option>
					        <option value="B类稳定型" selected="">B类稳定型</option>
					        <option value="C类后期跟进型">C类后期跟进型</option>
					        <option value="D类联系失败型">D类联系失败型</option>
					      </select>
					    </div>
				    </div>
				    <div class="layui-inline">
				      <label class="layui-form-label">回单</label>
				      <div class="layui-input-inline">
				        <input type="text" name="receipt" autocomplete="off" class="layui-input">
				      </div>
				    </div>
		        </div>
		        		        		        		        				
				<div class="layui-form-item layui-form-text">
				    <label class="layui-form-label">备注</label>
				    <div class="layui-input-block">
				      <textarea placeholder="请输入内容" name="remark" class="layui-textarea"></textarea>
				    </div>
				</div>
				<div class="layui-form-item">
				    <div class="layui-input-block">
				      <button type="submit" class="layui-btn bbb" lay-submit="" lay-filter="demo1">立即提交</button>
				      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
				    </div>
				</div>
	    </form>
	</body>
<script type="text/javascript" src="__PUBLIC__/hawk/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/frame/layui/layui.js"></script>
	<script>
	$('#btn-refresh').on('click', function () {
            location.reload();
        });
	layui.use(['form', 'layedit', 'laydate'], function(){
	  var form = layui.form
	  ,layer = layui.layer
	  ,layedit = layui.layedit
	  ,laydate = layui.laydate;		
	  
	  //日期选择
	  laydate.render({
      elem: '#date1'
     });
      laydate.render({
      elem: '#date2'
     });
      laydate.render({
      elem: '#date3'
     });  
	});		
	
	// $('.bbb').click(function(){
		
	// 	alert($('.aaa').val());
	// });
	
</script>
</html>
